package ar.fiuba.tp7552.buildadmin.model.expensas;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Configurable;

import ar.fiuba.tp7552.buildadmin.model.BusinessException;
import ar.fiuba.tp7552.buildadmin.model.builds.Edificio;

@Configurable(dependencyCheck=true,autowire=Autowire.BY_TYPE)
public abstract class CalculadorExpensas {

	private CobroFinder cobroFinder;
	private LiquidacionFinder liquidacionFinder;
	
	public abstract Collection<Liquidacion> calcularExpensas(Edificio edificio, Integer mes, Integer anio, TipoExpensa tipo) throws BusinessException;

	public CobroFinder getCobroFinder() {
		return cobroFinder;
	}

	public void setCobroFinder(CobroFinder cobroFinder) {
		this.cobroFinder = cobroFinder;
	}

	public LiquidacionFinder getLiquidacionFinder() {
		return liquidacionFinder;
	}

	public void setLiquidacionFinder(LiquidacionFinder liquidacionFinder) {
		this.liquidacionFinder = liquidacionFinder;
	}
}
